/**
 * Title:		T09Squares.java
 * Description: Test program for frogcolor
 * 
 * @version		1.0 May 2009
 * @author		Hidemitsu Izawa (hi2136@columbia.edu)
 */
import kfrog.Frog;
import kfrog.Pond;

public class T09Squares {
	
	public static void main(String args[]){
		/** pond */
		Pond pond = new Pond(400,400);
		pond.setPondColor("WHITE");
		/** frog1 */
		Frog frog1 = new Frog(pond,1);
		frog1.frogcolor("BLUE");
		frog1.startdraw();
		frog1.speed(3);
		for(int i=0;i<4;i++){
			frog1.forward(100);
			frog1.turnright(90);
		}
		frog1.stopdraw();

	
		/** frog2 */
		Frog frog2 = new Frog(pond,2);
		frog2.frogcolor("RED");
		frog2.speed(3);
		frog2.turnleft(90);
		frog2.forward(10);
		frog2.startdraw();
		for(int i=0;i<4;i++){
			if(false){
				break;
			}
			frog2.forward(100);
			frog2.turnright(90);
		}
		frog2.stopdraw();
		
		Thread FROG1 = new Thread(frog1);
		FROG1.start();
		Thread FROG2 = new Thread(frog2);
		FROG2.start();
	
	}

}
